import List from "./_list";
import style from "./index.module.scss";
import Header from "@/app/components/Header";
import Footer from "@/app/components/Footer";
import { getWordTemplate } from "@/service/oldResume";

export default async function Home({ params }) {
  const res = await getWordTemplate({ pageNum: 1, pageSize: 20 });
  let list = [];
  if (res.code === 200) {
    list = res.data.data || [];
  }

  return (
    <>
      <Header current="muban" style={{ background: "#fff" }} />
      <main className={style.main}>
        <div className={style.container}>
          <div className={style.right}>
            <List list={list} />
          </div>
        </div>
        <Footer />
      </main>
    </>
  );
}
